/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WecharCusMoneyFrozen extends BasicModel<WecharCusMoneyFrozen> {
  cusCode?: string; // 客户编码
  moneyType?: string; // 冻结类别
  fmoney?: number; // 冻结金额
  sourceId?: string; // 来源ID
  sourceType?: string; // 来源类型
}

export const wecharCusMoneyFrozenList = (params?: WecharCusMoneyFrozen | any) =>
  defHttp.get<WecharCusMoneyFrozen>({ url: adminPath + '/setting/price/wecharCusMoneyFrozen/list', params });

export const wecharCusMoneyFrozenListData = (params?: WecharCusMoneyFrozen | any) =>
  defHttp.post<Page<WecharCusMoneyFrozen>>({ url: adminPath + '/setting/price/wecharCusMoneyFrozen/listData', params });

export const wecharCusMoneyFrozenForm = (params?: WecharCusMoneyFrozen | any) =>
  defHttp.get<WecharCusMoneyFrozen>({ url: adminPath + '/setting/price/wecharCusMoneyFrozen/form', params });

export const wecharCusMoneyFrozenSave = (params?: any, data?: WecharCusMoneyFrozen | any) =>
  defHttp.postJson<WecharCusMoneyFrozen>({ url: adminPath + '/setting/price/wecharCusMoneyFrozen/save', params, data });

export const wecharCusMoneyFrozenDelete = (params?: WecharCusMoneyFrozen | any) =>
  defHttp.get<WecharCusMoneyFrozen>({ url: adminPath + '/setting/price/wecharCusMoneyFrozen/delete', params });
